﻿using System;

namespace CommonEngine.Resource
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class RequiredPermissionAttribute : Attribute
    {
        public Type ResourceTypeType { get; private set; }

        public int GrantedOperations { get; private set; }

        public RequiredPermissionAttribute(Type resourceTypeType, int grantedOperations)
        {
            ResourceTypeType = resourceTypeType;
            GrantedOperations = grantedOperations;
        }
    }
}
